package com.ruoyi.siyun.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 实名认证对象 sy_real_name_auth
 * 
 * @author ruoyi
 * @date 2024-12-25
 */
public class SyRealNameAuth extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 实名认证id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 实名 */
    @Excel(name = "实名")
    private String name;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private Long idcardNumber;

    /** 地址 */
    @Excel(name = "地址")
    private String url;

    /** 有效起始期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效起始期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 有效终值期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效终值期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 身份证图片（正面） */
    @Excel(name = "身份证图片", readConverterExp = "正=面")
    private String idcardImage1;

    /** 身份证图片（反面） */
    @Excel(name = "身份证图片", readConverterExp = "反=面")
    private String idcardImage2;

    /** 状态（1.已通过 2.未通过） */
    @Excel(name = "状态", readConverterExp = "1=.已通过,2=.未通过")
    private Long state;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setIdcardNumber(Long idcardNumber) 
    {
        this.idcardNumber = idcardNumber;
    }

    public Long getIdcardNumber() 
    {
        return idcardNumber;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setIdcardImage1(String idcardImage1) 
    {
        this.idcardImage1 = idcardImage1;
    }

    public String getIdcardImage1() 
    {
        return idcardImage1;
    }
    public void setIdcardImage2(String idcardImage2) 
    {
        this.idcardImage2 = idcardImage2;
    }

    public String getIdcardImage2() 
    {
        return idcardImage2;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("idcardNumber", getIdcardNumber())
            .append("url", getUrl())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("idcardImage1", getIdcardImage1())
            .append("idcardImage2", getIdcardImage2())
            .append("state", getState())
            .toString();
    }
}
